<!DOCTYPE html>
<html>
    <head>
        <title>:: Life CMS - Gerenciador de Conte&uacute;do ::</title>
        <meta http-equiv="Content-Type" content="text/html; charset=uft-8">
        <!-- Estilos de UI do jQuery -->
        <link type="text/css" href="<?= base_url('application/modules/admin/views'); ?>/css/overcast/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
        <link type="text/css" href="<?= base_url('application/modules/admin/views'); ?>/css/main.css" rel="stylesheet" />
        <!-- Scripts -->
        
        <script type="text/javascript" src="<?= base_url('application/modules/admin/views'); ?>/js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="<?= base_url('application/modules/admin/views'); ?>/js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="<?= base_url('application/modules/admin/views'); ?>/js/main.js"></script>
        <script type="text/javascript" src="<?= base_url('application/modules/admin/views'); ?>/js/ckeditor/ckeditor.js"></script>
    </head>
    <body>
        <div id="principal">
            <div id="topo" class="ui-state-default ui-corner-all">
                <div id="logomarca">Logomarca</div>
                <div id="menu">
                    <ul id="menu_topo">
                        <?php
                        if(is_admin()):
                            echo anchor('admin/configuracoes', 'Configura&ccedil;&otilde;es') . ' | ';
                            echo anchor('admin/usuarios', 'Usu&aacute;rios');
                        else:
                            echo anchor('admin/dadosusuario', 'Atualizar meus dados');
                        endif;
                        ?> |
                        <?= anchor('admin/index/dologout', 'Sair'); ?>
                    </ul>
                </div>
            </div>
            <div id="meio">
                <div id="sidebar" class="ui-widget-content ui-corner-all">
                    <ul id="menu_lateral" class="ui-menu" style="width: 99%;">
                        <li class="ui-state-default ui-corner-all menu_lateral"><b>Menu Principal</b></li>
                        <?php echo get_menu_admin() ?>
                        <li class="ui-menu-item ui-corner-all item"><?= anchor('admin/index/dologout', 'Sair'); ?></li>
                    </ul>
                </div>
                <div id="painel">
                    <!-- Mensagem do sistema -->
                    <?php
                    if (@$msg):
                        if ($msg <> 'pag'):
                            ?>
                            <div id="mensagem_sistema">
                                <div class="ui-state-highlight ui-corner-all msg">
                                    <p>
                                        <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                                        <?= humanize($msg); ?>
                                    </p>
                                </div>
                            </div>
                            <?php
                        endif;
                    endif;
                    ?>
                    <!-- Início do painel dinâmico -->
                    <?= $contents; ?>
                    <!-- Fim do painel dinâmico -->
                </div>
            </div>
            <div id="rodape" class="ui-state-default ui-corner-all">
                <p>
                    <span>&reg;<?= date("Y"); ?> <a href="http://www.lifesites.com.br" target="_blank">Life Sites</a>. Direitos reservados.</span>
                    <span style="float: right;">
                        <a href="#">Suporte t&eacute;cnico</a> | 
                        <a href="#">Fale Conosco</a>
                    </span>
                </p>
            </div>
        </div>
    </body>
</html>